import Vue from 'vue'
import * as rpConfig from "../../rpConfig/constant";
Vue.filter('getTtime',(value)=>{
   value=1520520930
   return rpConfig.getTime(value,'S')
})

Vue.filter('btmStau',(value)=>{
    return value?"正常":"报警"
 })
 Vue.filter('btmHandwareStau',(value)=>{
    return value?"正常":"故障"
 })
 Vue.filter('btmServiceStau',(value)=>{
     switch(value){
         case 1:
         return "正常运行"
         case 2:
         return "终止运行"
         case 3:
         return "维修中"

     }
     return "正常运行"
 })